package lab02.Test06;

/**
 * Created by 李晓容 on 2017/10/15.
 */
public class Triangle {
    double a;
    double b;
    double c;
    double h;
    double judge;
    double area(){
        h=((double)(a+b+c))/2;
        return (double)Math.sqrt(h*(h-b)*(h-c)*(h-a));

    }
    void isJdge(){
        if((a+b<=c)||(a+c<=b)||(b+c<=a)){
            System.out.println("不能构成三角形");
        }
        else
            System.out.println("可以构成三角形");
    }

    public static void main(String[] args) {

    }
}
